home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / tcl / Tcl_GetVar.man < prev    next >
Encoding:
Text File  |  1990-12-06  |  2.0 KB  |  69 lines

  1.  
  2.  
  3.  
  4. Tcl_GetVar        Tcl Command Language Library         Tcl_GetVar
  5.  
  6.  
  7.  
  8. _________________________________________________________________
  9.  
  10. NNAAMMEE
  11.      Tcl_GetVar - return the value of a Tcl variable
  12.  
  13. SSYYNNOOPPSSIISS
  14.      ##iinncclluuddee <<ttccll..hh>>
  15.  
  16.      char *
  17.      TTccll__GGeettVVaarr(_i_n_t_e_r_p, _v_a_r_N_a_m_e, _g_l_o_b_a_l)
  18.  
  19. AARRGGUUMMEENNTTSS
  20.      Tcl_Interp   *_i_n_t_e_r_p   (in)      Interpreter  in  which   to
  21.                                       check for variable.
  22.  
  23.      char         *_v_a_r_N_a_m_e  (in)      Name of desired variable.
  24.  
  25.      int          _g_l_o_b_a_l    (in)      If  non-zero,  then  insist
  26.                                       that _v_a_r_N_a_m_e be interpreted
  27.                                       as   a   global    variable
  28.                                       regardless   of  whether  a
  29.                                       procedure invocation is  in
  30.                                       progress.
  31.  
  32. _________________________________________________________________
  33.  
  34.  
  35. DDEESSCCRRIIPPTTIIOONN
  36.      TTccll__GGeettVVaarr is a utility procedure used by several of the Tcl
  37.      commands.   It  returns  the  value  of  variable _v_a_r_N_a_m_e in
  38.      interpreter _i_n_t_e_r_p.  If there isn't a Tcl command  procedure
  39.      being  interpreted right now, or if _g_l_o_b_a_l is non-zero, then
  40.      _v_a_r_N_a_m_e is always treated as the name of a global  variable.
  41.      Otherwise, if a procedure is being interpreted, then _v_a_r_N_a_m_e
  42.      will be treated as a local variable name, unless it has been
  43.      declared global using the gglloobbaall command.  If no variable by
  44.      the name _v_a_r_N_a_m_e exists right now, then a  NULL  pointer  is
  45.      returned.
  46.  
  47.  
  48. KKEEYYWWOORRDDSS
  49.      interpreter, global, local, variable
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65. Sprite v.1.0       Printed:  December 6, 1990                   1
  66.  
  67.  
  68.  
  69.